package mock.servicesdirectory.geography.dao.daoimpl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import mock.servicesdirectory.common.entities.TrustRegion;
import mock.servicesdirectory.geography.dao.daointerface.TrustRegionDao;

public class TrustRegionDaoImpl extends HibernateDaoSupport implements TrustRegionDao {
	
	@Override
	public List<TrustRegion> listTrustRegion() {
		return getHibernateTemplate().find("from TrustRegion");
		}

	@Override
	public void addTrustRegion(TrustRegion trustRegion) {
		getHibernateTemplate().saveOrUpdate(trustRegion);
		
	}

}
